<?php 
class AjaxAction extends Action{
	public function getAskSubscribe(){
			//获取关注数据
		$attentionData = service ( 'Follow' )->getFollowData ($this->mid, $type = 'sort' );
		
		if (! empty ( $attentionData )) {
			$tagDao = model ( 'Xtag' );
			foreach ( $attentionData as &$value ) {
				$cid = $value;
				$value = array ();
				if (! $add) {
					$title = explode ( ',', $tagDao->getTagName ( $cid ) );
					$value ['title'] = array_pop ( $title );
				} else {
					$value ['title'] = str_replace ( ',', ' > ', $tagDao->getTagName ( $cid ) );
				}
				$value ['cid'] = $cid;
			}
		}
		$this->assign('subscribe',$attentionData);
		$this->display();
	}
}
?>